/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01_封装测试 {
    public static void main(String[] args) {
        Student student = new Student();

        // 外界可以随随便便的访问里面的内容.有非常大的安全隐患
//        student.name = "_+_)P_@#+_+@";
//        student.age = -20;

        student.setName("小明");
        student.setAge(20);

        student.show();

    }
}
